JP_BUTTON_MASK = JPF_BUTTON_BLUE OR JPF_BUTTON_RED OR JPF_BUTTON_YELLOW OR JPF_BUTTON_GREEN OR JPF_BUTTON_FORWARD OR JPF_BUTTON_REVERSE OR JPF_BUTTON_PLAY;
{ Direction types, valid for JP_TYPE_GAMECTLR and JP_TYPE_JOYSTK }
JPB_JOY_UP = 3;
JPB_JOY_DOWN = 2;
JPB_JOY_LEFT = 1;
JPB_JOY_RIGHT = 0;
JPF_JOY_UP = 8;
JPF_JOY_DOWN = 4;
JPF_JOY_LEFT = 2;
JPF_JOY_RIGHT = 1;
JP_DIRECTION_MASK = JPF_JOY_UP OR JPF_JOY_DOWN OR JPF_JOY_LEFT OR JPF_JOY_RIGHT;
{ Mouse position reports, valid for JP_TYPE_MOUSE }
JP_MHORZ_MASK = 255; { horzizontal position }
JP_MVERT_MASK = 65280; { vertical position }
JP_MOUSE_MASK = JP_MHORZ_MASK OR JP_MVERT_MASK;
{ Obsolete ReadJoyPort() definitions, here for source code compatibility only.